using UnityEngine;

namespace CinemaDirector
{
	[CutsceneItem("Game Object", "SendMessage")]
	public class SendMessageGlobal : CinemaGlobalEvent
	{
		public GameObject callObject;

		public string methodName;

		public override void Trigger()
		{
			if (callObject != null)
			{
				callObject.SendMessage(methodName);
			}
		}
	}
}
